//package admin.gwamok.validator;
//
//import org.springframework.validation.Errors;
//import org.springframework.validation.ValidationUtils;
//import org.springframework.validation.Validator;
//
//import com.gwamok.domain.GwamokCommand;
//
//public class GwamokValidator implements Validator{
//
//	@Override
//	public boolean supports(Class<?> clazz) {
//		return GwamokCommand.class.isAssignableFrom(clazz);
//	}
//
//	@Override
//	public void validate(Object target, Errors errors) {
//		ValidationUtils.rejectIfEmptyOrWhitespace(errors, "pwd", "required");
//		ValidationUtils.rejectIfEmptyOrWhitespace(errors, "writer", "required");
//		ValidationUtils.rejectIfEmptyOrWhitespace(errors, "title", "required");
//		ValidationUtils.rejectIfEmptyOrWhitespace(errors, "content", "required");
//	}
//
//}
